package com.njlime.cms.repository.sys;

import com.njlime.cms.entities.Channel;
import com.njlime.cms.entities.MaterialsImage;
import com.njlime.core.helper.PageBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.Map;

/**
 * Created by Dean on 2017-7-27.
 */
public interface MaterialImageDao extends JpaRepository<MaterialsImage, Integer>,JpaSpecificationExecutor<MaterialsImage> {


    public PageBean getImageList(PageBean pageBean, int unitId,int groupId,String name);

    public void delImage(int id, int unitId);

    MaterialsImage get(int id, int unitId);

    /**
     * 图片分组
     * @param id 图片id
     * @param groupId 分组id
     * @param unitId 单位id
     */
    public void editImageGroup(int id, int groupId, int unitId);

}
